<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" style="border: none;" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Record_context')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-record_context" class="form-control " style="border: none;" rows="5" name="row[record_context]" cols="50">{$row.record_context|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-record_files" class="control-label col-xs-12 col-sm-2">{:__('Record_files')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-record_files" class="form-control hide" value="{$row.record_files|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-record_files" class="btn btn-danger faupload hide" data-input-id="c-record_files" data-mimetype="*" data-multiple="true" data-preview-id="p-record_files"><i class="fa fa-upload"></i>{:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-record_files" class="btn btn-primary fachoose hide" data-input-id="c-record_files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-record_files"></span>
            </div>
            <ul class="row list-inline faupload-preview p-files" id="p-record_files"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Record_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-record_time" class="form-control datetimepicker" style="border: none;" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[record_time]" type="text" value="{:$row.record_time?datetime($row.record_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Visible_admin_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-visible_admin_ids" class="form-control " style="border: none;" rows="5" name="row[visible_admin_ids]" cols="50">{$row.visible_names|htmlentities}</textarea>
        </div>
    </div>
</form>

<style>
    .p-files .btn.btn-danger.btn-xs.btn-trash {
        display: none;
    }
</style>
